﻿@model VolunteerWebsite.Models.LogOnModel

@{
    ViewBag.Title = "登录";
}

<h2>登录</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<!--Login was unsuccessful. Please correct the errors and try again.-->
@Html.ValidationSummary(true, "登录失败.请更正错误,再次尝试.") 

@using (Html.BeginForm()) {
    <div>
        <fieldset>
            <legend>帐号信息</legend>

            <div class="editor-label">
                <!-- 帐号Label-->
                @Html.LabelFor(m => m.UserName)
            </div>
            <div class="editor-field">
                <!-- 帐号textbox-->
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </div>

            <div class="editor-label">
                <!-- 密码Label-->
                @Html.LabelFor(m => m.Password)
            </div>
            <div class="editor-field">
                <!-- 密码textbox-->
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>

            <div class="editor-label">
                <!-- 记住帐号-->
                @Html.CheckBoxFor(m => m.RememberAccount)
                @Html.LabelFor(m => m.RememberAccount)

                <!-- 记住密码-->
                @Html.CheckBoxFor(m => m.RememberPassword)
                @Html.LabelFor(m => m.RememberPassword)
            </div>

            <!-- 登录、注册、忘记密码button-->
            <p>
                <input type = "submit" value = "登录" />
                <a href = "/Account/Register/">注册</a>
                <a href = "">忘记密码</a>
            </p>


        </fieldset>
    </div>
}
